package com.titanrise.crm.handler;

import com.titanrise.crm.domain.dto.RoleBelongDto;
import com.titanrise.crm.domain.model.Role;

import java.util.List;

/**
 * @Description: 打印机
 * @Author: pront
 * @Time:2024-11-22 09:29
 */
public class RootServicePrinter {

    /**
     * distributeClient方法打印部分
     * @param notBelongClients 没有所属关系的客户集合
     * @param roles 销售集合
     */
    public static void distributeClientPrint(List<RoleBelongDto> notBelongClients, List<Role> roles) {
        System.out.println("  |  客户姓名 - 客户id  |  ");
        notBelongClients.forEach(item -> {
            System.out.println("  |  " + item.getName() + " - " + item.getUid() + "  |  " );
        });
        System.out.println("  |  销售姓名 - 销售id  |  ");
            roles.forEach(item -> {
            System.out.println("  |  " + item.getName() + " - " + item.getUid() + "  |  " );
        });
    }
}
